package com.boss.controller;

import com.alibaba.fastjson.JSON;
import com.boss.entity.BossExamine;
import com.boss.service.BossExamineService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class BossExamineController {
    @Autowired
    private BossExamineService bossExamineService;

    @RequestMapping("/list")
    public String list(){
        List<BossExamine> list=bossExamineService.getBossExamine();
        String json =  JSON.toJSONString(list);
        return json;
    }
}
